home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1996 June / MACPOWER-1996-06.ISO.7z / MACPOWER-1996-06.ISO / AMUG / PROGRAMING_7 / LogoMation 1.1.1 / LogoMation 1.1.1 ト / Documentation ト / LogoMation's Reference Manual / LogoMation's Reference Manual.rsrc / PICT_13.png < prev    next >
Portable Network Graphic  |  1995-09-29  |  63KB  |  816x1056  |  8-bit (256 colors)
Labels: text | letter | font | paper | document
OCR: 13 8. LogoMation Functions A function is defined as follows; the argument list can be empty, like in C: FUNCTION name (arg 1) ..... Arg statement 1 statement, statementx The function consists of statements 1 through. As usual, indentation defines the scope of the subroutine definition. The next statementis executed after the function definition. Functions can be defined anywherei (e.before or after their use) . All functions return a value, either explicitly usingREFURN statement, or implicitly when the last statement is executed. The implicit value is the null string. The format of a return statement is: RETURN expr where expr is optional and defaults to the null string. function is called much like in C, as follows; The argument list can be empty: name (arg 1) ..... frg The caller's argu ...